// +----------------------------------------------------------------------
// | BB [ BB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024~2034 https://www.bobahappy.com.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: luowei Team <luowei@bobahappy.com>
// +----------------------------------------------------------------------

import request from '@/libs/request';

/**
 * @description 列表
 * @param {Object} param data {Object} 传值参数
 */
export function ListApi(data) {
  return request({
    url: 'register/list',
    method: 'get',
    params: data,
  });
}

/**
 * @description 已收到挂号费列表
 * @param {Object} param data {Object} 传值参数
 */
export function ListPayedApi(data) {
  return request({
    url: 'register/paylist',
    method: 'get',
    params: data,
  });
}
/**
 * @description 就诊记录列表
 * @param {Object} param data {Object} 传值参数
 */
export function ListFinishedApi(data) {
  return request({
    url: 'register/list_finished',
    method: 'get',
    params: data,
  });
}

/**
 * @description 预检记录列表
 * @param {Object} param data {Object} 传值参数
 */
export function ListUserFinishedApi(data) {
  return request({
    url: 'register/user_list_finished',
    method: 'get',
    params: data,
  });
}

/**
 * @description 保存
 * @param {Object} param data {Object} 传值对象
 */
export function saveApi(data) {
  return request({
    url: `register/save`,
    method: 'post',
    data,
  });
}

/**
 * @description 排班数据
 * @param {Object} param data {Object} 传值参数
 */
export function ListScheduleApi(data) {
  return request({
    url: 'register/schedules',
    method: 'get',
    params: data,
  });
}
/**
 * @description 收取费用
 * @param {Object} param data {Object} 传值参数
 */
export function payOffLineApi(id) {
  return request({
    url: 'register/pay_offline/'+id,
    method: 'get',
    params: {},
  });
}

/**
 * @description 取消挂号
 * @param {Object} param data {Object} 传值参数
 */
export function cancelNoApi(id) {
  return request({
    url: 'register/cancel/'+id,
    method: 'get',
    params: {},
  });
}